<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.*"%>
<%@ page import="com.lagou.edu.pojo.Resume" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>

<html>
<%
Collection coll=(Collection)request.getAttribute("book");
%>
<head>
<title>信息平台</title>
<link href="../../CSS/style.css" rel="stylesheet">
</head>
<body onLoad="clockon(bgclock)">
<%--<%@include file="banner.jsp"%>--%>
<%@include file="navigation.jsp"%>
<table width="778"  border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td valign="top" bgcolor="#FFFFFF"><table width="99%" height="510"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableBorder_gray">
  <tr>
    <td height="510" valign="top" style="padding:5px;"><table width="98%"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="22" valign="top" class="word_orange">当前位置：简历列表 </td>
      </tr>
      <tr>
        <td align="center" valign="top"><%--
if(coll==null || coll.isEmpty()){
--%>
 <%--         <table width="100%" height="30"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td height="36" align="center">暂无信息！</td>
            </tr>
          </table>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <a href="resume_add.jsp">添加信息</a> </td>
  </tr>
</table>--%>
 <%--
}else{
  //通过迭代方式显示数据
  Iterator it=coll.iterator();
  int ID=0;
  String bookname="";
  String barcode="";
  String typename="";
  String publishing="";
  String bookcase="";
  int storage=0;
  --%>
 <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="87%">&nbsp;      </td>
<%--<td width="13%">
      <a href="resume_add.jsp">添加信息</a></td>
  </tr>--%>
</table>  
  <table width="98%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#F6B83B" bordercolorlight="#FFFFFF">
  <tr align="center" bgcolor="#e3F4F7">
    <td width="13%" bgcolor="#F9D16B">编号</td>
    <td width="16%" bgcolor="#F9D16B">姓名</td>
    <td width="15%" bgcolor="#F9D16B">电话</td>
    <td width="24%" bgcolor="#F9D16B">地址</td>
    <td width="9%" bgcolor="#F9D16B">修改</td>
    <td width="5%" bgcolor="#F9D16B">删除</td>
  </tr>
<%--
  while(it.hasNext()){
    BookForm bookForm=(BookForm)it.next();
	ID=bookForm.getId().intValue();
	bookname=chStr.toChinese(bookForm.getBookName());
	barcode=chStr.nullToString(bookForm.getBarcode(),"&nbsp;");
	typename=chStr.toChinese(bookForm.getTypeName());
	publishing=chStr.toChinese(bookForm.getPublishing());
	bookcase=chStr.nullToString(chStr.toChinese(bookForm.getBookcaseName()),"&nbsp;");
	--%>
<c:forEach var="resume" items="${resumeList}">
  <tr>
    <td style="padding:5px;">&nbsp;${resume.id}</td>
    <td style="padding:5px;">${resume.name}</td>
    <td style="padding:5px;">${resume.phone}</td>
    <td style="padding:5px;">${resume.address}</td>

    <td align="center"><a href="queryById?id=${resume.id}">修改</a></td>
    <td align="center"><a href="deleteById?id=${resume.id}">删除</a></td>
  </tr>
</c:forEach>
<%--
  }
}
--%>
</table></td>
      </tr>
    </table>
</td>
  </tr>
</table>
      <%--<%@ include file="copyright.jsp"%>--%>
    </td>
  </tr>
</table>
</body>
</html>
